package com.fdd.op.sdk.request.api.contract.template.widget;

import com.fdd.op.sdk.ApiRuleException;
import com.fdd.op.sdk.BaseFddRequest;
import com.fdd.op.sdk.constants.Constants;
import com.fdd.op.sdk.internal.mapping.RequestField;
import com.fdd.op.sdk.response.api.contract.template.widget.ListResponse;

import java.util.Map;

public class ListRequest extends BaseFddRequest<ListResponse> {
    @Override
    public String getApiMethodName() {
        return "/base/api/contract/template/widget/list";
    }

    @Override
    public Map<String, Object> getTextParams() {
        return null;
    }

    @Override
    public Class<ListResponse> getResponseClass() {
        return ListResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {

    }

    @Override
    public String getHttpMethod() {
        return Constants.METHOD_GET;
    }

    @RequestField
    private String companyId;

    @RequestField
    private String tpOrgId;

    @RequestField
    private String code;

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getTpOrgId() {
        return tpOrgId;
    }

    public void setTpOrgId(String tpOrgId) {
        this.tpOrgId = tpOrgId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
